package com.bx.implatform.kafka.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Schema(description = "事件分流方案下发对象")
public class EventDividePlan {

    @Schema(description = " 事件分流记录id ")
    private String id;

    @Schema(description = " 事件ID ")
    private String eventId;

    @Schema(description = " 要通知的用户ID列表")
    private List<String> userIds;

    @Schema(description = " 下发时间")
    private String createTime;

    @Schema(description = "分流路线列表 ")
    public List<DEventDivideRoute> routes;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class DEventDivideRoute {

        private String id;

        private String pathName;

        private String mileage;
    }
}
